<admintpl file="header" />
</head>

<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AppUser/index')}">聊友列表</a></li>
			<li><a href="{:U('AppUser/add')}">新增聊友</a></li>
		</ul>
		<form class="well form-search pd0" method="post"  id="form1">
			<table class="table table-condensed">
				<tbody>
					<tr>
						<td>
							账号:
						</td>
						<td>
							<input type="text" name="user_account" class="wd200" value="{$formget.user_account}">
						</td>
							<td>
							互动id:
						</td>
						<td>
							<input type="text" name="user_uniq_id" class="wd200" value="{$formget.user_uniq_id}">
						</td>
						<td>
							昵称:
						</td>
						<td>
							<input type="text" name="nick" class="wd200" value="{$formget.nick}">
						</td>
						<td>
							会员等级
						</td>
						<td>
							<select class="select2-default" name="grade">
								<option   value="">全部</option>
								<foreach name="grades" item="v">
									
								<option  <if condition="$formget['grade'] eq $v['pname']" value="$v['pname']">selected</if> >{$v['pname']}</option>	
								</foreach>
							</select>
						</td>
						
						<td>
						</td>
						<td>
							<input type="submit" class="btn btn-primary" onclick="javascript:form1.action='{:U("AppUser/index")}';" value="搜索" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>账号</th>
						<th>账号类型</th>
						<th>互动id</th>
						<th>昵称</th>
						<th>性别</th>
						<th>等级</th>
						<th>账号余额</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<?php
						$type=array('1'=>'手机号码','2'=>'qq登录','3'=>'微信登录','4'=>'新浪微博');
						$sex=array('1'=>'男','2'=>'女','3'=>'保密');
					?>
					<foreach name="list" item="vo">
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.user_account}</td>
							<td>{$type[$vo['type']]}</td>
							<td>{$vo.user_uniq_id}</td>
							<td>{$vo.nick}</td>
							<td>{$sex[$vo['sex']]}</td>
							<td>{$vo.grade}</td>
							<td>{$vo.balance}</td>
							<td>
								<a href="{:U('AppUser/edit',array('id'=>$vo['id']))}">详情</a> 
							</td>
						</tr>
					</foreach>
				</tbody>
				<tfoot>
					<tr>
						<th width="50">ID</th>
						<th>账号</th>
						<th>账号类型</th>
						<th>互动id</th>
						<th>昵称</th>
						<th>性别</th>
						<th>等级</th>
						<th>账号余额</th>
						<th>操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>

</html>